/*
 * 易族智汇（北京）科技有限公司 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.javamall.com.cn
 */
package com.enation.app.javashop.core.client.feignimpl.member;

import com.enation.app.javashop.client.member.ShopRoleClient;
import com.enation.app.javashop.core.client.fallback.member.ShopRoleClientFallbackFactory;
import com.enation.app.javashop.core.handler.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author fk
 * @version v2.0
 * @Description:
 * @date 2018/8/17 14:42
 * @since v7.0.0
 */
@FeignClient(name = "member-service", fallbackFactory = ShopRoleClientFallbackFactory.class,configuration = {FeignConfiguration.class})
public interface ShopRoleClientFeignImpl extends ShopRoleClient {

    /**
     * 获取所有角色的权限对照表
     *
     * @param sellerId
     * @return 权限对照表
     */
    @Override
    @RequestMapping(value = "/client/shop-role", method = RequestMethod.GET)
    Map<String, List<String>> getRoleMap(@RequestParam("seller_id") Long sellerId);

}
